package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.system.domain.dto.SysOssListInput;
import com.ruoyi.system.domain.dto.SysOssView;
import jakarta.servlet.http.HttpServletResponse;
import org.babyfish.jimmer.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Collection;
import java.util.List;

/**
 * 文件上传 服务层
 *
 * @author Lion Li
 */

public interface ISysOssService {

    Page<SysOssView> queryPageList(SysOssListInput sysOss, PageQuery pageQuery);

    List<SysOssView> listByIds(Collection<String> ossIds);

    SysOssView getById(String ossId);

    SysOssView upload(MultipartFile file);

    void download(String ossId, HttpServletResponse response) throws IOException;

    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

}

